package com.springmvc.service;

import com.springmvc.dao.PclistMapper;
import com.springmvc.entity.Pclist;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * Created by 29047 on 2018/2/24.
 */
@Service
public class PclistService {

    @Autowired
    private PclistMapper pclistMapper;

    public int deleteByPrimaryKey(Integer id){
        return pclistMapper.deleteByPrimaryKey(id);
    }

    public int insert(Pclist record){
        return pclistMapper.insert(record);
    }

    public int insertSelective(Pclist record){
        return pclistMapper.insertSelective(record);
    }

    public Pclist selectByPrimaryKey(Integer id){
        return pclistMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Pclist record){
        return pclistMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Pclist record){
        return pclistMapper.updateByPrimaryKey(record);
    }

    public ArrayList<Pclist> selectByType(int type){
        return pclistMapper.selectByType(type);
    }
}
